﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;

namespace Poet
{
    /// <summary>
    /// Interaction logic for SettingsControl.xaml
    /// </summary>
    public partial class SettingsControl : UserControl
    {
        public SettingsControl()
        {
            InitializeComponent();
        }

        void propertyGridComboBoxSelectionChanged(object sender, RoutedEventArgs e)
        {
            if (propertyGrid == null)
                return;
            switch (propertyGridComboBox.SelectedIndex)
            {
                case 0:
                   // propertyGrid.SelectedObject = ((ChildWindow)MainWindow.Documents[0]).textEditor;
                    break;
                case 1:
                   // propertyGrid.SelectedObject = ((ChildWindow)MainWindow.Documents[0]).textEditor.TextArea;
                    break;
                case 2:
                   // propertyGrid.SelectedObject = ((ChildWindow)MainWindow.Documents[0]).textEditor.Options;
                    break;
            }
        }
    }
}
